package poker;

import enums.ActionType;
import enums.State;

public class Action 
{
	private ActionType actionType;
	private State state;
	private int sum;

	public ActionType getActionType() {
		return actionType;
	}
//test
	public int getSum() {
		return sum;
	}
	
	public State getState()
	{
		return state;
	}
	
	private Action(ActionType actionType, int sum, State state)
	{
		this.actionType = actionType;
		this.sum = sum;
		this.state = state;
	}
	
	public static Action Bet(int sum, State state)
	{
		return new Action(ActionType.BET, sum, state);
	}
	
	public static Action Fold(State state)
	{
		return new Action(ActionType.FOLD, 0, state);
	}
	
	public static Action Check(State state)
	{
		return new Action(ActionType.CHECK, 0, state);
	}
	
	public static Action Call(int sum, State state)
	{
		return new Action(ActionType.CALL, sum, state);
	}

	public static Action Raise(int sum, State state)
	{
		return new Action(ActionType.RAISE, sum, state);
	}
}
